Auto merge of #5029 - matklad:new-defaults-to-bin, r=withoutboats
authorbors <bors@rust-lang.org>
Tue, 13 Feb 2018 11:03:57 +0000 (11:03 +0000)
committerbors <bors@rust-lang.org>
Tue, 13 Feb 2018 11:03:57 +0000 (11:03 +0000)
New defaults to bin

So this switches `cargo new` default from `--lib` to `--bin`, as discussed on IRC.

The first two commits are just refactorings, and the last one actually flips the switch. Surprisingly enough, no tests need to be modified it seems!

r? @withoutboats


Trivial merge